package tripx.plan;

import tripx.sql.QueryObject;

public class DbPlan extends QueryObject {

	private int pid;
	// user id
	public int uid;
	// start time
	public String start;
	// end time
	public String end;
	// plan content
	public String content;
	// join or not
	public int single;

	public DbPlan(int uid, String start, String end, String content, int single) {
		this(-1, uid, start, end, content, single);
	}

	public DbPlan(int pid, int uid, String start, String end, String content,
			int single) {
		this.pid = pid;
		this.uid = uid;
		this.start = start;
		this.end = end;
		this.content = content;
		this.single = single;
	}

	public int getPlanId() {
		return pid;
	}
}
